<?php

namespace App\Services\Draw;


/**
 * 抽奖工程
 * @author wrh
 */
class DrawFactory
{
    /**
     * 实例化优惠券
     *
     * @param int
     * @return mixed
     */
    public function make($type)
    {
//        if (!in_array($type, array_keys())) {
//
//        }

        $className = 'App\Services\Draw\DrawObject\\' . trim(ucwords(str_replace('_', '', $type)));
        return new $className();
    }
}